package com.wlyuan.open.scanner.application.handler.table;

import com.wlyuan.open.scanner.application.annotation.TableScannerName;
import com.wlyuan.open.scanner.constant.ScannerCodeEnum;
import com.wlyuan.open.scanner.constant.TableEnum;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @author lijing
 * @description
 */
@Slf4j
@Service
@RequiredArgsConstructor
@TableScannerName(isDefault = false, tableName = TableEnum.CARRIER_ONLINE)
public class SupplierTableToIncrHandler extends BaseTableToIncrHandler {

    @Override
    public List<String> handler(String tableName, String data, String beforeData) {
        return Arrays.asList(ScannerCodeEnum.CARRIER_ONLINE.getName());
    }
}
